import os

def load_markdown_content(folder, file_name: str) -> str:
    """
    从指定文件夹加载完整markdown文档内容
    
    参数:
        folder (str): 文件所在的文件夹路径
        file_name (str): 文件名
        
    返回:
        str: 文件的完整内容文本。如果加载失败则返回空字符串
        
    异常:
        Exception: 当文件读取出错时捕获并打印错误信息
    """
    try:
        file_path = os.path.join(folder, file_name)
        with open(file_path, 'r', encoding='utf-8') as file:
            content = file.read()
        return content
    except Exception as e:
        print(f"加载文件 {file_name} 时出错: {str(e)}")
        return ""
    
if __name__ == "__main__":
    content=load_markdown_content("C:/Users/lenovo/Desktop/", "questi.txt")
    print(content)